<?php
namespace app\admin\validate;

class PositiveIntegerValidate extends BaseValidate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
	protected $rule = [
        'id' => 'require|isPositiveInteger',
    ];

    protected $message  =   [
        'id.require' => 'id不能为空',
    ];
    
}